<!DOCTYPE HTML>
<html lang="en" >
    <!-- Start book  -->
    <head>
        <!-- head:start -->
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <title>form标签的类型 | </title>
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <meta name="description" content="">
        <meta name="generator" content="GitBook 2.6.7">
        
        
        <meta name="HandheldFriendly" content="true"/>
        <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
        <meta name="apple-mobile-web-app-capable" content="yes">
        <meta name="apple-mobile-web-app-status-bar-style" content="black">
        <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../gitbook/images/apple-touch-icon-precomposed-152.png">
        <link rel="shortcut icon" href="../../gitbook/images/favicon.ico" type="image/x-icon">
        
    <link rel="stylesheet" href="../../gitbook/style.css">
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-splitter/splitter.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-highlight/website.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-search/search.css">
        
    
        
        <link rel="stylesheet" href="../../gitbook/plugins/gitbook-plugin-fontsettings/website.css">
        
    
    

        
    
    
    <link rel="next" href="../../md/HTML5/20170721HTML.html" />
    
    
    <link rel="prev" href="../../md/HTML5/form.html" />
    

        <!-- head:end -->
    </head>
    <body>
        <!-- body:start -->
        
    <div class="book"
        data-level="1.4"
        data-chapter-title="form标签的类型"
        data-filepath="md/HTML5/form-type.md"
        data-basepath="../.."
        data-revision="Tue Sep 19 2017 14:58:58 GMT+0800 (中国标准时间)"
        data-innerlanguage="">
    

<div class="book-summary">
    <nav role="navigation">
        <ul class="summary">
            
            
            
            

            

            
    
        <li class="chapter " data-level="0" data-path="index.html">
            
                
                    <a href="../../index.html">
                
                        <i class="fa fa-check"></i>
                        
                        Introduction
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1" data-path="md/HTML5/readme.html">
            
                
                    <a href="../../md/HTML5/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.</b>
                        
                        HTML
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1" data-path="md/HTML5/20170719HTML.html">
            
                
                    <a href="../../md/HTML5/20170719HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.1.</b>
                        
                        什么是HTML
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="md/HTML5/biaoqian.html">
            
                
                    <a href="../../md/HTML5/biaoqian.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.2.</b>
                        
                        标签
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="md/HTML5/form.html">
            
                
                    <a href="../../md/HTML5/form.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.3.</b>
                        
                        表单
                    </a>
            
            
        </li>
    
        <li class="chapter active" data-level="1.4" data-path="md/HTML5/form-type.html">
            
                
                    <a href="../../md/HTML5/form-type.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.4.</b>
                        
                        form标签的类型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="md/HTML5/20170721HTML.html">
            
                
                    <a href="../../md/HTML5/20170721HTML.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>1.5.</b>
                        
                        其他标签的使用
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2" data-path="md/CSS/readme.html">
            
                
                    <a href="../../md/CSS/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.</b>
                        
                        CSS3
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.1" data-path="md/CSS/20170722CSS.html">
            
                
                    <a href="../../md/CSS/20170722CSS.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.1.</b>
                        
                        什么是CSS
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2" data-path="md/CSS/selector.html">
            
                
                    <a href="../../md/CSS/selector.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.</b>
                        
                        选择器
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.2.1" data-path="md/CSS/selector/tongpei.html">
            
                
                    <a href="../../md/CSS/selector/tongpei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.1.</b>
                        
                        通配选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.2" data-path="md/CSS/selector/yuansu.html">
            
                
                    <a href="../../md/CSS/selector/yuansu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.2.</b>
                        
                        元素选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.3" data-path="md/CSS/selector/qunzu.html">
            
                
                    <a href="../../md/CSS/selector/qunzu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.3.</b>
                        
                        群组选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.4" data-path="md/CSS/selector/guanxi.html">
            
                
                    <a href="../../md/CSS/selector/guanxi.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.4.</b>
                        
                        关系选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.5" data-path="md/CSS/selector/shuxing.html">
            
                
                    <a href="../../md/CSS/selector/shuxing.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.5.</b>
                        
                        属性选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.6" data-path="md/CSS/selector/weilei.html">
            
                
                    <a href="../../md/CSS/selector/weilei.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.6.</b>
                        
                        伪类选择器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.2.7" data-path="md/CSS/selector/weiduixiang.html">
            
                
                    <a href="../../md/CSS/selector/weiduixiang.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.2.7.</b>
                        
                        伪对象选择器
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.3" data-path="md/CSS/style/readme.html">
            
                
                    <a href="../../md/CSS/style/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.</b>
                        
                        常用样式分类
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.3.1" data-path="md/CSS/style/font.html">
            
                
                    <a href="../../md/CSS/style/font.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.1.</b>
                        
                        字体样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.2" data-path="md/CSS/style/box.html">
            
                
                    <a href="../../md/CSS/style/box.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.2.</b>
                        
                        盒子模型
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.3" data-path="md/CSS/style/border.html">
            
                
                    <a href="../../md/CSS/style/border.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.3.</b>
                        
                        边框样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.4" data-path="md/CSS/style/paragraph.html">
            
                
                    <a href="../../md/CSS/style/paragraph.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.4.</b>
                        
                        段落样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.5" data-path="md/CSS/style/background.html">
            
                
                    <a href="../../md/CSS/style/background.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.5.</b>
                        
                        背景样式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.6" data-path="md/CSS/style/float.html">
            
                
                    <a href="../../md/CSS/style/float.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.6.</b>
                        
                        浮动
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.7" data-path="md/CSS/style/position.html">
            
                
                    <a href="../../md/CSS/style/position.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.7.</b>
                        
                        定位
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.8" data-path="md/CSS/style/animation.html">
            
                
                    <a href="../../md/CSS/style/animation.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.8.</b>
                        
                        动画及过渡效果
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.9" data-path="md/CSS/style/iconfont.html">
            
                
                    <a href="../../md/CSS/style/iconfont.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.9.</b>
                        
                        外部icon图标库的使用
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.10" data-path="md/CSS/style/sanjiaoxing.html">
            
                
                    <a href="../../md/CSS/style/sanjiaoxing.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.10.</b>
                        
                        利用border画三角形
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.11" data-path="md/CSS/style/xiaojiao.html">
            
                
                    <a href="../../md/CSS/style/xiaojiao.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.11.</b>
                        
                        对话框旁边的小角制作
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.3.12" data-path="md/CSS/style/flex.html">
            
                
                    <a href="../../md/CSS/style/flex.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.3.12.</b>
                        
                        弹性盒子
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="2.4" data-path="md/CSS/idea/readme.html">
            
                
                    <a href="../../md/CSS/idea/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.</b>
                        
                        小技巧
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="2.4.1" data-path="md/CSS/idea/caret-color.html">
            
                
                    <a href="../../md/CSS/idea/caret-color.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.1.</b>
                        
                        光标和placeholder颜色
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="2.4.2" data-path="md/CSS/idea/background.html">
            
                
                    <a href="../../md/CSS/idea/background.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>2.4.2.</b>
                        
                        部分背景透明
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="3" data-path="md/mobile/readme.html">
            
                
                    <a href="../../md/mobile/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.</b>
                        
                        移动端相关
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="3.1" >
            
            <span><b>3.1.</b> [媒体特性与Responsive设计]</span>
            
            
        </li>
    
        <li class="chapter " data-level="3.2" data-path="md/mobile/viewport.html">
            
                
                    <a href="../../md/mobile/viewport.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.2.</b>
                        
                        视口
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="3.3" data-path="md/mobile/responsive.html">
            
                
                    <a href="../../md/mobile/responsive.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>3.3.</b>
                        
                        响应式网页
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4" data-path="md/javascript/readme.html">
            
                
                    <a href="../../md/javascript/readme.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.</b>
                        
                        JavaScript
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.1" data-path="md/javascript/strict.html">
            
                
                    <a href="../../md/javascript/strict.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.1.</b>
                        
                        JavaScript的严格模式
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.2" data-path="md/javascript/value.html">
            
                
                    <a href="../../md/javascript/value.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.2.</b>
                        
                        变量
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3" >
            
            <span><b>4.3.</b> [对象]</span>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.3.1" data-path="md/javascript/string.html">
            
                
                    <a href="../../md/javascript/string.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.1.</b>
                        
                        String
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.2" data-path="md/javascript/array.html">
            
                
                    <a href="../../md/javascript/array.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.2.</b>
                        
                        Array
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.3" data-path="md/javascript/date.html">
            
                
                    <a href="../../md/javascript/date.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.3.</b>
                        
                        Date
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.4" data-path="md/javascript/number.html">
            
                
                    <a href="../../md/javascript/number.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.4.</b>
                        
                        Number
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.3.5" data-path="md/javascript/math.html">
            
                
                    <a href="../../md/javascript/math.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.3.5.</b>
                        
                        Math
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.4" data-path="md/javascript/yunsuanfu.html">
            
                
                    <a href="../../md/javascript/yunsuanfu.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.4.</b>
                        
                        运算符
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.5" data-path="md/javascript/yuju.html">
            
                
                    <a href="../../md/javascript/yuju.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.5.</b>
                        
                        语句
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.6" data-path="md/javascript/function.html">
            
                
                    <a href="../../md/javascript/function.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.6.</b>
                        
                        函数
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.7" data-path="md/javascript/time.html">
            
                
                    <a href="../../md/javascript/time.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.7.</b>
                        
                        定时器
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8" data-path="md/javascript/dom.html">
            
                
                    <a href="../../md/javascript/dom.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.</b>
                        
                        DOM操作
                    </a>
            
            
            <ul class="articles">
                
    
        <li class="chapter " data-level="4.8.1" data-path="md/javascript/search.html">
            
                
                    <a href="../../md/javascript/search.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.1.</b>
                        
                        查找
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8.2" data-path="md/javascript/add.html">
            
                
                    <a href="../../md/javascript/add.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.2.</b>
                        
                        增加
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.8.3" data-path="md/javascript/remove.html">
            
                
                    <a href="../../md/javascript/remove.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.8.3.</b>
                        
                        移除
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="4.9" data-path="md/javascript/HTML-JavaScript.html">
            
                
                    <a href="../../md/javascript/HTML-JavaScript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.9.</b>
                        
                        在HTML中使用JavaScript
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.10" data-path="md/javascript/CSS-javascript.html">
            
                
                    <a href="../../md/javascript/CSS-javascript.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.10.</b>
                        
                        JavaScript控制样式和属性
                    </a>
            
            
        </li>
    
        <li class="chapter " data-level="4.11" data-path="md/javascript/json.html">
            
                
                    <a href="../../md/javascript/json.html">
                
                        <i class="fa fa-check"></i>
                        
                            <b>4.11.</b>
                        
                        JSON相关
                    </a>
            
            
        </li>
    

            </ul>
            
        </li>
    


            
            <li class="divider"></li>
            <li>
                <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
                    Published with GitBook
                </a>
            </li>
            
        </ul>
    </nav>
</div>

    <div class="book-body">
        <div class="body-inner">
            <div class="book-header" role="navigation">
    <!-- Actions Left -->
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href="../../" ></a>
    </h1>
</div>

            <div class="page-wrapper" tabindex="-1" role="main">
                <div class="page-inner">
                
                
                    <section class="normal" id="section-">
                    
                        <h1 id="form&#x6807;&#x7B7E;&#x7684;type&#x79CD;&#x7C7B;&#x53CA;&#x4F7F;&#x7528;&#x60C5;&#x51B5;">form&#x6807;&#x7B7E;&#x7684;type&#x79CD;&#x7C7B;&#x53CA;&#x4F7F;&#x7528;&#x60C5;&#x51B5;</h1>
<h2 id="button">button</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x53EF;&#x70B9;&#x51FB;&#x7684;&#x6309;&#x94AE;&#xFF08;&#x5927;&#x591A;&#x4E0E;JavaScript&#x4F7F;&#x7528;&#x6765;&#x542F;&#x52A8;&#x811A;&#x672C;&#xFF09;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;button&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;&#x5173;&#x95ED;&quot;</span> <span class="hljs-attribute">onclick</span>=<span class="hljs-value">&quot;window.close()&quot;</span> /&gt;</span>
</code></pre>
</blockquote>
<h2 id="text">text</h2>
<blockquote>
<p>&#x9ED8;&#x8BA4;&#x3002;&#x5B9A;&#x4E49;&#x5355;&#x884C;&#x8F93;&#x5165;&#x5B57;&#x6BB5;&#xFF0C;&#x7528;&#x6237;&#x53EF;&#x5728;&#x5176;&#x4E2D;&#x8F93;&#x5165;&#x6587;&#x672C;&#x3002;&#x9ED8;&#x8BA4;&#x662F; 20 &#x4E2A;&#x5B57;&#x7B26;&#x3002;</p>
</blockquote>
<p><strong>autofocus</strong>&#x8BBE;&#x7F6E;&#x8F93;&#x5165;&#x5B57;&#x6BB5;&#x5728;&#x9875;&#x9762;&#x52A0;&#x8F7D;&#x65F6;&#x81EA;&#x52A8;&#x83B7;&#x5F97;&#x7126;&#x70B9;</p>
<h2 id="password">password</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x5BC6;&#x7801;&#x5B57;&#x6BB5;&#x3002;&#x5B57;&#x6BB5;&#x4E2D;&#x7684;&#x5B57;&#x7B26;&#x4F1A;&#x88AB;&#x906E;&#x853D;&#x3002;</p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;password&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;password&quot;</span> <span class="hljs-attribute">autocomplete</span>=<span class="hljs-value">&quot;off&quot;</span>&gt;</span>
</code></pre>
<ul>
<li>autocomplete&#x8BBE;&#x4E3A;on&#x8868;&#x793A;&#x5141;&#x8BB8;&#x6D4F;&#x89C8;&#x5668;&#x8BB0;&#x4F4F;&#x5BC6;&#x7801;</li>
</ul>
<h2 id="radio">radio</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x5355;&#x9009;&#x6309;&#x94AE;</p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;radio&quot;</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;genderChoice1&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;gender&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;male&quot;</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">label</span> <span class="hljs-attribute">for</span>=<span class="hljs-value">&quot;genderChoice1&quot;</span>&gt;</span>Male<span class="hljs-tag">&lt;/<span class="hljs-title">label</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;radio&quot;</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;genderChoice2&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;gender&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;female&quot;</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">label</span> <span class="hljs-attribute">for</span>=<span class="hljs-value">&quot;genderChoice2&quot;</span>&gt;</span>Female<span class="hljs-tag">&lt;/<span class="hljs-title">label</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;radio&quot;</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;genderChoice3&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;gender&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;other&quot;</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">label</span> <span class="hljs-attribute">for</span>=<span class="hljs-value">&quot;genderChoice3&quot;</span>&gt;</span>Other<span class="hljs-tag">&lt;/<span class="hljs-title">label</span>&gt;</span>
</code></pre>
<ul>
<li>name&#x76F8;&#x540C;&#x7684;&#x4E3A;&#x4E00;&#x7EC4;</li>
<li>&#x9009;&#x4E2D;&#x540E;&#x63D0;&#x4EA4;&#x8868;&#x5355;&#x65F6;&#x7684;&#x6570;&#x636E;&#x5C31;&#x662F;gender=male.</li>
</ul>
<h2 id="checkbox">checkbox</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x590D;&#x9009;&#x6846;</p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;checkbox&quot;</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;coding&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;interest&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;coding&quot;</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">label</span> <span class="hljs-attribute">for</span>=<span class="hljs-value">&quot;coding&quot;</span>&gt;</span>Coding<span class="hljs-tag">&lt;/<span class="hljs-title">label</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;checkbox&quot;</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;music&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;interest&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;music&quot;</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">label</span> <span class="hljs-attribute">for</span>=<span class="hljs-value">&quot;music&quot;</span>&gt;</span>Music<span class="hljs-tag">&lt;/<span class="hljs-title">label</span>&gt;</span>
</code></pre>
<ul>
<li>name&#x76F8;&#x540C;&#x7684;&#x4E3A;&#x4E00;&#x7EC4;</li>
<li>value&#x6307;&#x5B9A;input&#x7684;&#x503C;&#x3002;&#x5982;&#x679C;&#x7701;&#x7565;&#xFF0C;&#x83B7;&#x53D6;&#x8BE5;&#x5143;&#x7D20;&#x7684;&#x503C;&#x7684;&#x7ED3;&#x679C;&#x4E3A;&#x5B57;&#x7B26;&#x4E32;&quot;on&quot;&#x3002;</li>
<li>checked&#x8868;&#x793A;&#x9ED8;&#x8BA4;&#x88AB;&#x9009;&#x4E2D;</li>
<li>&#x591A;&#x9009;&#x63D0;&#x4EA4;&#x8868;&#x5355;&#x65F6;&#x7684;&#x6570;&#x636E;&#x662F;interest=coding&amp;interest=music.</li>
</ul>
<h2 id="color">color</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x62FE;&#x8272;&#x5668;</p>
</blockquote>
<ul>
<li>name&#xFF1A;&#x968F;&#x8868;&#x5355;&#x4E00;&#x8D77;&#x63D0;&#x4EA4;&#x7684;&#x989C;&#x8272;&#x9009;&#x62E9;&#x5668;&#x7684;name&#x3002;</li>
<li>disabled&#xFF1A;&#x6B64;&#x5E03;&#x5C14;&#x503C;&#x6807;&#x660E;&#x989C;&#x8272;&#x9009;&#x62E9;&#x5176;&#x662F;&#x5426;&#x4E0D;&#x53EF;&#x7528;&#x4E8E;&#x4EA4;&#x4E92;&#x3002;&#x53E6;&#x5916;&#xFF0C;disabled&#x65F6;&#x7684;&#x503C;&#x4E0D;&#x4F1A;&#x968F;&#x8868;&#x5355;&#x63D0;&#x4EA4;&#x3002;</li>
<li>value&#xFF1A;&#x989C;&#x8272;&#x9009;&#x62E9;&#x5668;&#x7684;value&#xFF0C;&#x6307;&#x5B9A;&#x989C;&#x8272;&#x9009;&#x62E9;&#x5668;&#x9ED8;&#x8BA4;&#x9009;&#x62E9;&#x7684;&#x989C;&#x8272;&#x3002;input&#x7684;value&#x503C;&#x5FC5;&#x987B;&#x662F;&#x957F;&#x5EA6;&#x4E3A;7&#x7684;&#x5B57;&#x7B26;&#x4E32;&#xFF0C;&#x4EE5;#&#x5F00;&#x59CB;&#xFF0C;&#x5305;&#x542B;16&#x8FDB;&#x5236;&#x683C;&#x5F0F;&#x7684;&#x989C;&#x8272;&#x503C;&#x3002;&#x4F8B;&#x5982;&#xFF1A;#FF0000&#x4E3A;&#x7EA2;&#x8272;&#x7684;16&#x8FDB;&#x5236;&#x503C;&#x3002;</li>
</ul>
<p>&#x517C;&#x5BB9;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x6709;&#xFF1A;Edge,Firefox,Chrome,Safari,Opera 11&#x4EE5;&#x4E0A;,Android Browser,Chrome for Android,QQ Browser,UC Browser for Android.</p>
<h2 id="date">date</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#xFF08;&#x5E26;&#x6709; calendar &#x63A7;&#x4EF6;&#xFF09;</p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;date&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;date&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;2017-06-01&quot;</span>&gt;</span>
</code></pre>
<ul>
<li>value&#x4E2D;&#x7684;&#x662F;&#x9ED8;&#x8BA4;&#x503C;</li>
<li>&#x683C;&#x5F0F;&#x4E3A;yyyy-mm-dd</li>
</ul>
<p>&#x6807;&#x7B7E;date,time &#x548C;datetime&#x517C;&#x5BB9;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x6709;&#xFF1A;Edge,Firefox 56&#x4EE5;&#x4E0A;,Chrome,Opera,Android Browser,Chrome for Android.<br>&#x90E8;&#x5206;&#x652F;&#x6301;ios Safari</p>
<h2 id="datetimelocal">datetime-local</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x65E5;&#x671F;&#x5B57;&#x6BB5;&#xFF08;&#x5E26;&#x6709; calendar &#x548C; time &#x63A7;&#x4EF6;&#xFF09;</p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;party&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;datetime-local&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;partydate&quot;</span> <span class="hljs-attribute">min</span>=<span class="hljs-value">&quot;2017-06-01T08:30&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;2017-06-01T08:30&quot;</span>&gt;</span>
</code></pre>
<ul>
<li>&#x683C;&#x5F0F;&#x4E3A;yyyy-mm-ddThh:mm</li>
<li>min&#x548C;max&#x5C5E;&#x6027;&#x8BBE;&#x7F6E;&#x53EF;&#x9009;&#x65F6;&#x95F4;&#x533A;&#x57DF;&#x7684;&#x8303;&#x56F4;</li>
</ul>
<h2 id="file">file</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x8F93;&#x5165;&#x5B57;&#x6BB5;&#x548C; &quot;&#x6D4F;&#x89C8;...&quot; &#x6309;&#x94AE;&#xFF0C;&#x4F9B;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;file&quot;</span> <span class="hljs-attribute">accept</span>=<span class="hljs-value">&quot;.jpg, .jpeg, .png&quot;</span> <span class="hljs-attribute">multiple</span>&gt;</span>
</code></pre>
</blockquote>
<ul>
<li>multiple&#x8868;&#x793A;&#x53EF;&#x4EE5;&#x591A;&#x6587;&#x4EF6;&#x4E0A;&#x4F20;</li>
<li>accept&#x9650;&#x5236;&#x4E0A;&#x4F20;&#x6587;&#x4EF6;&#x7684;&#x7C7B;&#x578B;</li>
</ul>
<p>&#x517C;&#x5BB9;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x6709;&#xFF1A;IE,Firefox,Chrome,Opera.<br>&#x90E8;&#x5206;&#x652F;&#x6301;&#xFF1A;Safari,iOS Safari,Chrome for Android.</p>
<h2 id="hidden">hidden</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x9690;&#x85CF;&#x8F93;&#x5165;&#x5B57;&#x6BB5;   </p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">form</span> <span class="hljs-attribute">action</span>=<span class="hljs-value">&quot;&quot;</span>&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;hidden&quot;</span> <span class="hljs-attribute">name</span>=<span class="hljs-value">&quot;ip_address&quot;</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;127.0.0.1&quot;</span>/&gt;</span>
    <span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;submit&quot;</span>/&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">form</span>&gt;</span>
</code></pre>
<p>&#x8FD8;&#x662F;&#x4F1A;&#x6309;&#x7167;&#x6B63;&#x5E38;&#x7684;&#x6570;&#x636E;&#x8FDB;&#x884C;&#x63D0;&#x4EA4;&#xFF0C;&#x53EA;&#x4E0D;&#x8FC7;&#x4E0D;&#x9700;&#x8981;&#x7528;&#x6237;&#x7684;&#x53C2;&#x4E0E;&#x4FEE;&#x6539;&#x800C;&#x5DF2;&#x3002;</p>
<h2 id="number">number</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x5E26;&#x6709; spinner &#x63A7;&#x4EF6;&#x7684;&#x6570;&#x5B57;&#x5B57;&#x6BB5;</p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;number&quot;</span> <span class="hljs-attribute">step</span>=<span class="hljs-value">&quot;10&quot;</span> <span class="hljs-attribute">min</span>=<span class="hljs-value">&quot;0&quot;</span> <span class="hljs-attribute">max</span>=<span class="hljs-value">&quot;100&quot;</span>&gt;</span>
<span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;number&quot;</span> <span class="hljs-attribute">step</span>=<span class="hljs-value">&quot;0.01&quot;</span> <span class="hljs-attribute">min</span>=<span class="hljs-value">&quot;0&quot;</span> <span class="hljs-attribute">max</span>=<span class="hljs-value">&quot;100&quot;</span>&gt;</span>
</code></pre>
<ul>
<li>step&#x8868;&#x793A;&#x589E;&#x52A0;&#x4E00;&#x6B21;&#x6216;&#x51CF;&#x5C11;&#x4E00;&#x6B21;&#x7684;&#x6B65;&#x5E45;</li>
<li>min&#x548C;max&#x63A7;&#x5236;&#x53EF;&#x9009;&#x6570;&#x5B57;&#x7684;&#x8303;&#x56F4;</li>
</ul>
<p>&#x517C;&#x5BB9;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x6709;&#xFF1A;IE,Edge,Firefox,Chrome,Safari,Opera.<br>&#x90E8;&#x5206;&#x652F;&#x6301;&#xFF1A;iOS Safari,Android Browser,Chrome for Android.</p>
<h2 id="range">range</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x5E26;&#x6709; slider &#x63A7;&#x4EF6;&#x7684;&#x6570;&#x5B57;&#x5B57;&#x6BB5;&#x3002;</p>
</blockquote>
<ul>
<li>min&#x548C;max&#x63A7;&#x5236;&#x53EF;&#x9009;&#x7684;&#x8303;&#x56F4;</li>
<li>step&#x8868;&#x793A;&#x589E;&#x52A0;&#x4E00;&#x6B21;&#x6216;&#x51CF;&#x5C11;&#x4E00;&#x6B21;&#x7684;&#x6B65;&#x5E45;</li>
<li>value&#x53EF;&#x8BBE;&#x7F6E;&#x9ED8;&#x8BA4;&#x503C;</li>
</ul>
<p>&#x517C;&#x5BB9;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x6709;&#xFF1A;IE,Edge,Firefox,Chrome,Safari,Opera,iOS Safari,Android Browser,Chrome for Android.</p>
<h2 id="email">email</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x7528;&#x4E8E; e-mail &#x5730;&#x5740;&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;</p>
</blockquote>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;emailAddress&quot;</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;email&quot;</span> <span class="hljs-attribute">multiple</span>&gt;</span>
</code></pre>
<ul>
<li>&#x591A;&#x90AE;&#x7BB1;&#x586B;&#x5199;&#x4E3A;&#xFF1A;xx@xx.com,xxx@xx.com</li>
</ul>
<p>&#x53EF;&#x9009;&#x90AE;&#x7BB1;&#x7684;&#x5199;&#x6CD5;(&#x52A0;multiple&#x53EF;&#x591A;&#x9009;)&#xFF1A;</p>
<pre><code class="lang-html"><span class="hljs-tag">&lt;<span class="hljs-title">input</span> <span class="hljs-attribute">type</span>=<span class="hljs-value">&quot;email&quot;</span> <span class="hljs-attribute">size</span>=<span class="hljs-value">&quot;40&quot;</span> <span class="hljs-attribute">list</span>=<span class="hljs-value">&quot;defaultEmails&quot;</span>&gt;</span>

<span class="hljs-tag">&lt;<span class="hljs-title">datalist</span> <span class="hljs-attribute">id</span>=<span class="hljs-value">&quot;defaultEmails&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">option</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;jbond007@mi6.defence.gov.uk&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">option</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;jbourne@unknown.net&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">option</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;nfury@shield.org&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">option</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;tony@starkindustries.com&quot;</span>&gt;</span>
  <span class="hljs-tag">&lt;<span class="hljs-title">option</span> <span class="hljs-attribute">value</span>=<span class="hljs-value">&quot;hulk@grrrrrrrr.arg&quot;</span>&gt;</span>
<span class="hljs-tag">&lt;/<span class="hljs-title">datalist</span>&gt;</span>
</code></pre>
<p>&#x6807;&#x7B7E;Email,telephoto&#x548C;URL&#x517C;&#x5BB9;&#x7684;&#x6D4F;&#x89C8;&#x5668;&#x6709;&#xFF1A;IE,Edge,Firefox,Chrome,Safari,Opera,iOS Safari,Android Browser,Chrome for Android.</p>
<h2 id="url">URL</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x7528;&#x4E8E;URL&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;</p>
</blockquote>
<p>&#x8F93;&#x5165;&#x683C;&#x5F0F;&#x4E3A;http://...</p>
<h2 id="tel">tel</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x7528;&#x4E8E;&#x7535;&#x8BDD;&#x53F7;&#x7801;&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;&#x3002;</p>
</blockquote>
<h2 id="submit">submit</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x63D0;&#x4EA4;&#x6309;&#x94AE;&#x3002;&#x63D0;&#x4EA4;&#x6309;&#x94AE;&#x5411;&#x670D;&#x52A1;&#x5668;&#x53D1;&#x9001;&#x6570;&#x636E;&#x3002;</p>
</blockquote>
<h2 id="search">search</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x7528;&#x4E8E;&#x641C;&#x7D22;&#x7684;&#x6587;&#x672C;&#x5B57;&#x6BB5;&#x3002;</p>
</blockquote>
<h2 id="reset">reset</h2>
<blockquote>
<p>&#x5B9A;&#x4E49;&#x91CD;&#x7F6E;&#x6309;&#x94AE;&#x3002;&#x91CD;&#x7F6E;&#x6309;&#x94AE;&#x4F1A;&#x5C06;&#x6240;&#x6709;&#x8868;&#x5355;&#x5B57;&#x6BB5;&#x91CD;&#x7F6E;&#x4E3A;&#x521D;&#x59CB;&#x503C;&#x3002;</p>
</blockquote>

                    
                    </section>
                
                
                </div>
            </div>
        </div>

        
        <a href="../../md/HTML5/form.html" class="navigation navigation-prev " aria-label="Previous page: 表单"><i class="fa fa-angle-left"></i></a>
        
        
        <a href="../../md/HTML5/20170721HTML.html" class="navigation navigation-next " aria-label="Next page: 其他标签的使用"><i class="fa fa-angle-right"></i></a>
        
    </div>
</div>

        
<script src="../../gitbook/app.js"></script>

    
    <script src="../../gitbook/plugins/gitbook-plugin-toggle-chapters/toggle.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-splitter/splitter.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/lunr.min.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-search/search.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-sharing/buttons.js"></script>
    

    
    <script src="../../gitbook/plugins/gitbook-plugin-fontsettings/buttons.js"></script>
    

<script>
require(["gitbook"], function(gitbook) {
    var config = {"toggle-chapters":{},"splitter":{},"highlight":{},"search":{"maxIndexSize":1000000},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2}};
    gitbook.start(config);
});
</script>

        <!-- body:end -->
    </body>
    <!-- End of book  -->
</html>
